##
## Copyright (C) 2004-2006  Autodesk, Inc.
## 
## This library is free software; you can redistribute it and/or
## modify it under the terms of version 2.1 of the GNU Lesser
## General Public License as published by the Free Software Foundation.
## 
## This library is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
## Lesser General Public License for more details.
## 
## You should have received a copy of the GNU Lesser General Public
## License along with this library; if not, write to the Free Software
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
##

AUTOMAKE_OPTIONS = foreign

noinst_PROGRAMS = UnitTest

EXTRA_DIST = \
  UnitTest.vcproj \
  Atlas_North_WCS_Config.xml \
  WcsOverridesConfig.xml \
  providers.xml \
  WcsSchemaConfig.xml \
  stdafx.h \
  Pch.cpp

UnitTest_SOURCES = \
  CapabilityTest.cpp \
  ConnectTests.cpp \
  OverridesTest.cpp \
  UnitTestUtil.cpp \
  glibpatch.cpp \
  UnitTest.cpp \
  WcsTestCustomCommands.cpp \
  WcsTestDescribeSchema.cpp \
  WcsTests.cpp \
  WcsTestSelect.cpp \
  WcsTestSpatialContexts.cpp \
  XmlFormatter.cpp

noinst_HEADERS = $(UnitTest_SOURCES) \
  CapabilityTest.h \
  ConnectTests.h \
  OverridesTest.h \
  UnitTestUtil.h \
  WcsTestCustomCommands.h \
  WcsTestDescribeSchema.h \
  WcsTests.h \
  WcsTestSelect.h \
  WcsTestSpatialContexts.h \
  XmlFormatter.h \
  Pch.h

INCLUDES = \
  -I./ \
  -I../ \
  -I../Message/Inc \
  -I../../Inc \
  -I../Provider \
  -I$(FDO)/Unmanaged/Inc \
  -I$(FDOUTILITIES)/Common/Inc \
  -I$(FDOTHIRDPARTY)/linux/cppunit/include

UnitTest_LDADD = \
  ../Provider/libWCSProviderSrc.la \
  ../Overrides/libWCSOverridesSrc.la \
  $(FDOUTILITIES)/Common/libProvidersCommon.la \
  $(FDOTHIRDPARTY)/linux/cppunit/lib/libcppunit.a \
  $(FDO)/Unmanaged/Src/libFDO.la \
  -lxerces-c \
  -lxalan-c \
  -lxalanMsg \
  -lpthread_nonshared \
  -lpthread

UnitTest_LDFLAGS = \
  -L$(FDOTHIRDPARTY)/apache/xml-xalan/c/lib \
  -L$(FDOTHIRDPARTY)/apache/xml-xerces/c/lib

CXXFLAGS = @CXXFLAGS@ -D__USE_GNU -DLINUX -DLINUX_IA32 -D__STDC_LIMIT_MACROS

